package com.smartEdu.commons.resourceview;

import java.io.File;  
import java.util.Locale;  
import org.springframework.web.servlet.view.InternalResourceView;  

public class HtmlResourceView extends InternalResourceView {  
     @Override  
     public boolean checkResource(Locale locale) {  
    	 String path = (this.getServletContext().getRealPath("/") + getUrl()).replaceAll("/", "\\\\");
    	 File file = new File(path); 
    	 System.err.println(path);
    	 System.err.println(file.exists());
    	 return file.exists();// 判断该页面是否存在  
     }  
}
